package com.free.lazy.controller;

import com.free.lazy.entity.LoginForm;
import com.free.lazy.service.SecurityService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequiredArgsConstructor
@RequestMapping("/security")
public class SecurityController {

    private final SecurityService securityService;

    @PostMapping("/login")
    public void login(LoginForm loginForm) {
        securityService.login(loginForm);
    }

}
